package com.tencreat.domain.mall.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.enums.BalanceBusinessType;
import com.tencreat.common.enums.BalanceTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@ApiModel("消费券、余额、提货单记录")
@Data
public class BalanceRecordDTO {
//    private Long id;

    private Long uuid;

    private String mobile;

    private String type; // 1 收入,2 支出

    private BalanceBusinessType businessType;

//    @NotNull(message = "分页页码不能为空")
    private Integer pageNum;

//    @NotNull(message = "分页大小不能为空")
    private Integer pageSize;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private BalanceTypeEnum balanceType;

    private Long userId;

    //提货单状态 0 待结算 1 已结算
    private Integer status;


    private String storeName;//商家名称

    private Integer store;//1 是 0 否

    private Integer supplier;//1 是 0 否

    @ApiModelProperty(value= "商品订单sn")
    private String orderGoodsSn;
}
